import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

const SysRoutes: RouteConfig = {
  path: '/sys',
  component: Layout,
  redirect: '/sys/index',
  name: 'sysMgr',
  meta: {
    title: 'sysMgr',
    icon: 'example'
  },
  children: [
    {
      path: 'menu',
      component: () => import(/* webpackChunkName: "menuMgr" */ '@/views/sys_mgr/menu/index.vue'),
      name: 'menuMgr',
      meta: { title: 'menuMgr' }
    },
    {
      path: 'role',
      component: () => import(/* webpackChunkName: "roleMgr" */ '@/views/sys_mgr/role/index.vue'),
      name: 'roleMgr',
      meta: { title: 'roleMgr' }
    }, {
      path: 'users',
      component: () => import(/* webpackChunkName: "usersMgr" */ '@/views/sys_mgr/users/index.vue'),
      name: 'usersMgr',
      meta: { title: 'usersMgr' }
    }
  ]
}

export default SysRoutes
